package cn.hou.java.designpattern._15mediator;

public class Woman extends Person {

	public Woman(String name, int condition, Mediator mediator) {
		super(name, condition, mediator);
	}
	@Override
	public void getMatching(Person person) {
		//在中介者中注册自己
		this.getMediator().setWoman(this);
		//传入需要匹配的对象进行匹配
		this.getMediator().getMatching(person);
	}
}
